﻿using JQuery.WebKit.WebCommon.Attributes;

namespace JQuery.WebKit
{
    public enum PromptPosition
    {
        topRight,
        topLeft,
        bottomLeft,
        centerRight,
        bottomRight
    }

    public class JValidationOptions
    {
        [JavaScript("openDebug", Category = "options")]
        public bool? OpenDebug { get; set; }

        [JavaScript("scroll", Category = "options")]
        public bool? Scroll { get; set; }

        [JavaScript("validationEventTriggers", Category = "options")]
        public string ValidationEventTriggers { get; set; }

        [JavaScript("inlineValidation", Category = "options")]
        public bool? InlineValidation { get; set; }

        [JavaScript("promptPosition", Category = "options")]
        public PromptPosition? PromptPosition { get; set; }

        [JavaScript("containerOverflow", Category = "options")]
        public bool? ContainerOverflow { get; set; }

        [JavaScript("containerOverflowDOM", Category = "options")]
        public string ContainerOverflowSelector { get; set; }

        [JavaScript("updaterSelector", Category = "options")]
        public string UpdaterSelector { get; set; }
    }
}
